#include<iostream>
#include<vector>

using namespace std;

class Solution {
public:
    void moveZeroes(vector<int>& nums) {
        int cur = 0;
        int dest = -1;
        int n = nums.size();
        while (cur < n)
        {
            if (nums[cur])
            {
                swap(nums[++dest], nums[cur]);
            }
            cur++;
        }

    }
};


int main()
{
    return 0;
}